Skip to content

sokol: fix Windows HWND getter declaration conflict - #32252

Open
metif12 wants to merge 1 commit into
vlang:masterfrom
metif12:fix/gg-win32-hwnd-32217
Open

metif12 wants to merge 1 commit into
vlang:masterfrom
metif12:fix/gg-win32-hwnd-32217

Conversation

@metif12

@metif12 metif12 commented Nov 12, 2026

Copy link
Copy Markdown
Member

Fixes #32217.

Sokol declares sapp_win32_get_hwnd as returning const void*, while the V binding maps it to void*, producing conflicting declarations with TCC and MinGW-w64 GCC. Add a V-owned wrapper that explicitly casts the return value and route the V API through it.

The wrapper follows the existing Sokol owner/DLL boundary. No tests were run.

@metif12
metif12 force-pushed the fix/gg-win32-hwnd-32217 branch from 5218cbe to 4f5afcb Compare November 13, 2026 10:39

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

gg: conflicting types for 'sapp_win32_get_hwnd' on Windows (tcc and gcc), v run examples/gg/minimal.v fails

1 participant